                </div>
                <!-- END PAGE CONTAINER-->    
            </div>
            <!-- END PAGE -->
        </div>
        <!-- END CONTAINER -->
        <!-- BEGIN FOOTER -->
        <div class="footer">
            <div class="footer-inner">
                <?=date('Y')?> &copy; <?=$s_WebTitle?>.
            </div>
            <div class="footer-tools">
                <span class="go-top">
                    <i class="icon-angle-up"></i>
                </span>
            </div>
        </div>
        <!-- END FOOTER -->
        <!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
        <!-- BEGIN CORE PLUGINS -->   <script src="assets/plugins/jquery-1.10.1.min.js" type="text/javascript"></script>
        <script src="assets/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
        <script src="assets/plugins/jquery-ui/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>      
        <script src="assets/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
        <!--[if lt IE 9]>
        <script src="assets/plugins/excanvas.min.js"></script>
        <script src="assets/plugins/respond.min.js"></script>  
        <![endif]-->
        <!-- END CORE PLUGINS -->
        <!-- BEGIN PLUGIN --> 
        <?php foreach($a_js_files as $v_file) { ?>
            <script src="<?=$s_Assets_Path?>/<?=$v_file['path']?>" type="text/javascript" ></script>
        <?php } ?>
        <!-- END PLUGIN -->
        <script src="assets/scripts/app.js"></script>
        <script type="text/javascript">
            var namhoa = {
                logout:function(){
                    if(confirm('Bạn muốn thoát khỏi hệ thống ?')) {
                        document.location.href = 'index.php?ppomoduleid=logout_execute';
                    }
                    $('#overlay').hide();
                },
                single_delete:function(link){
                    if(confirm('Bạn muốn xóa ?')) {
                        $(location).attr('href',link);
                    }
                }
            };

            jQuery(document).ready(function() {    
                App.init(); // initlayout and core plugins
                <?= implode(" ", $a_js_class)?>
                        
                $('.page-sidebar .sidebar-search input').unbind('keypress').on('keypress', function (e) {
                    if (e.which == 13) {
                        return false;
                    }
                });

                // handle the search submit
                $('.sidebar-search .submit').unbind('click').on('click', function (e) {
                    e.preventDefault();

                    if ($('body').hasClass("page-sidebar-closed")) {
                        if ($('.sidebar-search').hasClass('open') == false) {
                            if ($('.page-sidebar-fixed').size() === 1) {
                                $('.page-sidebar .sidebar-toggler').click(); //trigger sidebar toggle button
                            }
                            $('.sidebar-search').addClass("open");
                        }
                    }
                });
                    
                $('#search_user').typeahead({
                    source: function(q, process){
                        return $.get('lib_menu_search_user.php', {search_key: q}, function(response) {
                            var data = new Array;
                            for(var i in response) {
                                data.push(response[i]['userid'] +"#"+ response[i]['saint'] +"#"+ response[i]['username']);
                            }
                            return process(data);
                        },
                        'json');
                    },
                    menu: '<ul class="typeahead dropdown-menu" style="background-color: white"></ul>',
                    item: '<li><a href="javascript:;"></a></li>',
                    highlighter: function(item) {
                        var parts = item.split('#'),
                        html  = '<img alt="" src="user_image.php?action=download-image&size=60&userid='+parts[0]+'">' + ' Mã Số: '+parts[0];
                        html += '<br/><div style="padding:7px 0 10px 0px;">'+parts[1]+' '+parts[2]+'</div>';
                        return html;
                    },
                    matcher: function (item) {
                        return item;
                    },
                    updater: function (item) {
                        var parts = item.split('#');
                        window.location = 'user_detail.php?userid=' + parts[0];
                    },
                    items: 30
                });
                
                $('select[name="category_team"],select[name="team"]').change(function () {
                    if ($(this).val() == 'AU_NHI') {
                        $('select[name="category_level"],select[name="level"]').find('option[value="CHIEN_CON"]').removeClass('hidden');
                    }
                    else {
                        $('select[name="category_level"],select[name="level"]').find('option[value="CHIEN_CON"]').addClass('hidden');
                    }
                }).trigger('change');
            });
        </script>
        <!-- END JAVASCRIPTS -->
    </body>
    <!-- END BODY -->
</html>